/*package tests.questions;

import kpi.java_training.testing.questions.*;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.util.ArrayList;

public class QuestionListTest {
    private QuestionList questions;

    @Before
    public void setUp() {
        questions = new QuestionList();

        ArrayList<String> qVariants = new ArrayList<String>();
        qVariants.add("first");
        qVariants.add("second");
        qVariants.add("third");
        ArrayList<Integer> cAnswers = new ArrayList<Integer>();
        cAnswers.add(2);
        cAnswers.add(4);
        Question question = new IntQuestion("test question 1", qVariants, cAnswers);
        questions.add(question);

        ArrayList<String> stringAnswers = new ArrayList<String>();
        stringAnswers.add("one");
        stringAnswers.add("two");
        question = new StringQuestion("test question 2", stringAnswers);
        questions.add(question);

        qVariants = new ArrayList<String>();
        qVariants.add("choose1");
        qVariants.add("choose2");
        cAnswers = new ArrayList<Integer>();
        cAnswers.add(1);
        cAnswers.add(2);
        question = new ManyFromManyQuestion("test question 3", qVariants, cAnswers);
        questions.add(question);
    }

    @Test
    public void testGetScore_3_correct() {
        questions.setQuestionAnswer(0, "4");
        questions.setQuestionAnswer(1, "two");
        questions.setQuestionAnswer(2, "2 1");
        Assert.assertEquals(3, questions.getScore());
    }

    @Test
    public void testGetScore_0_correct() {
        questions.setQuestionAnswer(0, "1");
        questions.setQuestionAnswer(1, "oneoneone");
        questions.setQuestionAnswer(2, "2 2");
        Assert.assertEquals(0, questions.getScore());
    }

    @Test
    public void testGetScore_1_correct() {
        questions.setQuestionAnswer(0, "4");
        questions.setQuestionAnswer(1, "");
        questions.setQuestionAnswer(2, "4");
        Assert.assertEquals(1, questions.getScore());
    }

    @Test
    public void testGetAnswersSaveData() {
        questions.setQuestionAnswer(0, "4");
        questions.setQuestionAnswer(1, "");
        questions.setQuestionAnswer(2, "4");
        String s = questions.getAnswersSaveData(3);
        Assert.assertEquals("3\n4\n\n4", s);
    }
}
      */